package com.financing.wap.dao.impl;
 



import java.util.List;

import org.springframework.stereotype.Repository;

import com.financing.wap.common.SqlName;
import com.financing.wap.dao.IAdvertDao;
import com.financing.wap.dto.AdvertDTO;
import com.financing.wap.vo.AdvertVO;


@SuppressWarnings({ "unchecked", "deprecation" })
@Repository("advertDaoImpl")
public class AdvertDaoImpl extends BaseDaoImpl<AdvertDTO, java.lang.Integer> implements IAdvertDao {

	@Override
	public List<AdvertDTO> queryAdvert(AdvertVO advertVO) {
		return this.sqlMapClientTemplate.queryForList(SqlName.QUERY_ADVERT,advertVO);
	}

	@Override
	public Class<AdvertDTO> getEntityClass() {
		return AdvertDTO.class;
	}

	@Override
	public AdvertDTO queryAdvertInfo(String advertVO) {
		return (AdvertDTO) this.sqlMapClientTemplate.queryForObject(SqlName.QUERY_ADVERT_INFO,advertVO);
	}

	@Override
	public List<AdvertDTO> queryAdvertLists(AdvertVO advertDTO) {
		return   this.sqlMapClientTemplate.queryForList(SqlName.QUERY_ADVERT_LISTS,advertDTO);
	}


}
